package com.service.base;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.base.BaseRepairUserInfoMapper;
import com.model.domain.base.GetBaseRepairUserInfoDO;
import com.model.pojo.base.BaseRepairUserInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;



/**
 * @Author: zql
 * @Description: 维修人员信息服务
 * @Data: 2023-09-09
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class BaseRepairUserInfoService {
    private final BaseRepairUserInfoMapper baseRepairUserInfoMapper;

    public List<BaseRepairUserInfo> getPageList(GetBaseRepairUserInfoDO getBaseRepairUserInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getBaseRepairUserInfoDO.getPage(),getBaseRepairUserInfoDO.getPageSize(),getBaseRepairUserInfoDO.getSortRow()+getBaseRepairUserInfoDO.getSortOrder());
        return baseRepairUserInfoMapper.selectList(getBaseRepairUserInfoDO);
    }
}
